package com.cgx.service;

import com.cgx.entity.User.FriendRelation;
import com.cgx.entity.User.User;
import com.cgx.vo.user.UserInfoVo;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.http.MediaType;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestBody;

import java.util.List;

@FeignClient("live-chat-web-user")
public interface UserService {

    @GetMapping(value = "/live-chat/user/getUserListByIdList", consumes = MediaType.APPLICATION_JSON_VALUE)
    List<User> getUserListByIdList(@RequestBody List<String> idList);

    @GetMapping(value = "/live-chat/friend/queryFriend", consumes = MediaType.APPLICATION_JSON_VALUE)
    List<FriendRelation> queryFriend(@RequestBody List<String> idList);

    @GetMapping(value = "/live-chat/friend/queryFriendBySessionId", consumes = MediaType.APPLICATION_JSON_VALUE)
    List<FriendRelation> queryFriendBySessionId(@RequestBody List<String> idList);

    @GetMapping(value = "/live-chat/user/getUserInfo", consumes = MediaType.APPLICATION_JSON_VALUE)
    List<UserInfoVo> getUserInfo(@RequestBody List<String> idList);
}
